package acm;

public class a6 {
    public static void main(String[] args){
        int [] a = new int[5];
        for (int i=0;i<32;i++){
            if (i/1%2==0){
                a[0]=0;
            }
            else {
                a[0]=1;
            }
            if (i/2%2==0){
                a[1]=0;
            }
            else {
                a[1]=1;
            }
            if (i/4%2==0){
                a[2]=0;
            }
            else {
                a[2]=1;
            }
            if (i/8%2==0){
                a[3]=0;
            }
            else {
                a[3]=1;
            }
            if (i/16%2==0){
                a[4]=0;
            }
            else {
                a[4]=1;
            }
            System.out.println(a[4]+""+a[3]+""+a[2]+""+a[1]+""+a[0]);
        }
        }
    }

